package com.feigndemo.consumer.failback;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import com.feigndemo.api.FeignDemoService;
import com.feigndemo.pojo.FeignDemoVO;

@Component
@RequestMapping("/failback/feign")
public class FeignDemoServiceDemote implements FeignDemoService {

	@Override
	public FeignDemoVO helloFeign(String id) {
		FeignDemoVO vo = new FeignDemoVO();
		vo.setId(id);
		vo.setName("fail");
		return vo;
	}
	
	
}
